package HouseRent.domain;

/**
 * Created with IntelliJ IDEA.
 * Description:一个House对象表示一个房屋信息
 * User:lenovo
 * Date:2024-06-09
 * Time:17:42
 */
public class House {
    //编号 房主 电话 地址 月租 状态（未出租、出租）
    private int id;
    private String name;
    private String telephone;
    private String address;
    private int rent;
    private String state;

    public House(int id, String name, String telephone, String address, int rent, String state) {
        this.id = id;
        this.name = name;
        this.telephone = telephone;
        this.address = address;
        this.rent = rent;
        this.state = state;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getRent() {
        return rent;
    }

    public void setRent(int rent) {
        this.rent = rent;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
    //需要重写一下toString方法


    @Override
    public String toString() {
        return id+
                "\t"+name+
                "\t"+telephone+
                "\t"+address+
                "\t"+rent+
                "\t"+state;
    }
}
